import request from '@/utils/request'

// 查询电子围栏列表
export function listElectricfence(query) {
  return request({
    url: '/location/electricfence/list',
    method: 'get',
    params: query
  })
}

// 查询电子围栏详细
export function getElectricfence(id) {
  return request({
    url: '/location/electricfence/' + id,
    method: 'get'
  })
}

// 新增电子围栏
export function addElectricfence(data) {
  return request({
    url: '/location/electricfence',
    method: 'post',
    data: data
  })
}

// 修改电子围栏
export function updateElectricfence(data) {
  return request({
    url: '/location/electricfence',
    method: 'put',
    data: data
  })
}

// 删除电子围栏
export function delElectricfence(id) {
  return request({
    url: '/location/electricfence/' + id,
    method: 'delete'
  })
}
